package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the EVENTTYPE database table.
 * 
 */
@Entity
public class Eventtype implements Serializable {
	
	private static final long serialVersionUID = 1L;
	private int eventtypeid;
	private Timestamp createddate;
	private Timestamp deleteddate;
	private String eventtypedesc;
	private String eventtypename;
	private String isactive;
	private List<Eventtypeofevent> eventtypeofevents;
	private List<Usereventtype> usereventtypes;

    public Eventtype() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getEventtypeid() {
		return this.eventtypeid;
	}

	public void setEventtypeid(int eventtypeid) {
		this.eventtypeid = eventtypeid;
	}


	public Timestamp getCreateddate() {
		return this.createddate;
	}

	public void setCreateddate(Timestamp createddate) {
		this.createddate = createddate;
	}


	public Timestamp getDeleteddate() {
		return this.deleteddate;
	}

	public void setDeleteddate(Timestamp deleteddate) {
		this.deleteddate = deleteddate;
	}


	public String getEventtypedesc() {
		return this.eventtypedesc;
	}

	public void setEventtypedesc(String eventtypedesc) {
		this.eventtypedesc = eventtypedesc;
	}


	public String getEventtypename() {
		return this.eventtypename;
	}

	public void setEventtypename(String eventtypename) {
		this.eventtypename = eventtypename;
	}


	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}


	//bi-directional many-to-one association to Eventtypeofevent
	@OneToMany(mappedBy="eventtype")
	public List<Eventtypeofevent> getEventtypeofevents() {
		return this.eventtypeofevents;
	}

	public void setEventtypeofevents(List<Eventtypeofevent> eventtypeofevents) {
		this.eventtypeofevents = eventtypeofevents;
	}
	

	//bi-directional many-to-one association to Usereventtype
	@OneToMany(mappedBy="eventtype")
	public List<Usereventtype> getUsereventtypes() {
		return this.usereventtypes;
	}

	public void setUsereventtypes(List<Usereventtype> usereventtypes) {
		this.usereventtypes = usereventtypes;
	}
	
}